package com.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.user.domain.Seats;
import org.apache.ibatis.annotations.Select;

/**
 * @author YU
 * @description 针对表【seats】的数据库操作Mapper
 * @createDate 2024-03-09 13:23:15
 * @Entity .domain.Seats
 */
public interface SeatsMapper extends BaseMapper<Seats> {

    /**
     * 根据id查询座位名称
     *
     * @param id 座位id
     */
    @Select("select seat_name from seats where id = #{id}")
    String selectNameByid(Integer id);
}




